Skip to content

Bug 641331: Copy Production Order Document lookup shows the current document#9087

Draft
alexei-dobriansky wants to merge 2 commits into
mainfrom
bugs/641331-EASY-CopyProductionOrderDocumentLookup
Draft

Bug 641331: Copy Production Order Document lookup shows the current document#9087
alexei-dobriansky wants to merge 2 commits into
mainfrom
bugs/641331-EASY-CopyProductionOrderDocumentLookup

Conversation

@alexei-dobriansky

@alexei-dobriansky alexei-dobriansky commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Fixes AB#641331

Report 99003802 LookupDocNo() only set SetRange(Status, StatusType) and never excluded the target document, so the current production order appeared in the Document No. lookup and could be selected, producing a late "cannot be copied onto itself" error. Exclude the target with SetFilter("No.", '<>%1', ...) when the from-status matches the target's status, mirroring Copy Sales/Purchase Document. Adds a modal-page-handler test. Propagated to the CZ Tests layer.

alexei-dobriansky and others added 2 commits July 3, 2026 16:39
…ocument

Report 99003802 LookupDocNo() only set SetRange(Status, StatusType) and never
excluded the target document, so the current production order appeared in the
Document No. lookup and could be selected, producing a late "cannot be copied
onto itself" error. Exclude the target with SetFilter("No.", '<>%1', ...) when the
from-status matches the target's status, mirroring Copy Sales/Purchase Document.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…Z layer

Miapp propagation of the new SCMManufacturing test to the CZ Tests layer.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@alexei-dobriansky alexei-dobriansky added the SCM GitHub request for SCM area label Jul 3, 2026
@github-actions github-actions Bot added this to the Version 29.0 milestone Jul 3, 2026
@alexei-dobriansky alexei-dobriansky self-assigned this Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

SCM GitHub request for SCM area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant